package com.wing.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.product.model.entity.WarehouseShipmentOrder;
import com.wing.product.model.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarehouseShipmentOrderDao extends BaseMapper<WarehouseShipmentOrder> {
    List<WarehouseShipmentOrderVO> list4app(Page<WarehouseShipmentOrder> pg, @Param("params") Map<String, Object> paramMap);

    ShipmentOrderInfoVO getInfoByShipmentId(String shipmentOrderId);

    List<ShipmentOrderDetailInfoVO> getDetailInfoByShipmentId(Long id);

    List<WarehouseProductInventoryVO> checkIsSign(Long id);

    List<ShipmentProductInventoryVO> getInventoryInfoByShipmentId(@Param("detailIds") List<Long> detailIds);

    WarehouseShipmentOrderInfoVO findOrderInfoById(Long id);

    WarehouseShipmentOrderInfoVO info(@Param("id") Long id,@Param("waybill") String waybill);

    List<WarehouseOrderInfoDetailVO> infoDetail(Long id);

    boolean updateStatus(@Param("id") Long id,@Param("status") Integer status);

    List<Map> findByUserKB(String kb);

}